package com.upcode.weighing.vo.req;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.upcode.weighing.base.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDateTime;

/**
 * <p>
 * 治超名单
 * </p>
 *
 * @author alex
 * @since 2024-07-21
 */
@ApiModel(value="", description="治超名单更新对象")
public class OverBlacklistEditVo extends BaseEntity {

    private static final long serialVersionUID = 1L;

    private Long id;

    /**
     * 车牌号码
     */
    @ApiModelProperty("车牌号码")
    private String plateNumber;

    /**
     * 车牌颜色
     */
    @ApiModelProperty("车牌颜色")
    private Integer plateColor;

    /**
     * 运输证号
     */
    @ApiModelProperty("运输证号")
    private String transportNo;

    /**
     * 违章次数
     */
    @ApiModelProperty("违章次数")
    private Integer peccancyTotal;

    /**
     * 最近一次违章时间
     */
    @ApiModelProperty("最近一次违章时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime lastPeccancyTime;

    /**
     * 当前状态(0未违章,1违章)
     */
    @ApiModelProperty("当前状态(0未违章,1违章)")
    private Integer status;
    /**
     * 撤销原因
     */
    @ApiModelProperty("撤销原因")
    private String cancelReason;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getPlateNumber() {
        return plateNumber;
    }

    public void setPlateNumber(String plateNumber) {
        this.plateNumber = plateNumber;
    }
    public Integer getPlateColor() {
        return plateColor;
    }

    public void setPlateColor(Integer plateColor) {
        this.plateColor = plateColor;
    }
    public String getTransportNo() {
        return transportNo;
    }

    public void setTransportNo(String transportNo) {
        this.transportNo = transportNo;
    }
    public Integer getPeccancyTotal() {
        return peccancyTotal;
    }

    public void setPeccancyTotal(Integer peccancyTotal) {
        this.peccancyTotal = peccancyTotal;
    }
    public LocalDateTime getLastPeccancyTime() {
        return lastPeccancyTime;
    }

    public void setLastPeccancyTime(LocalDateTime lastPeccancyTime) {
        this.lastPeccancyTime = lastPeccancyTime;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    public String getCancelReason() {
        return cancelReason;
    }

    public void setCancelReason(String cancelReason) {
        this.cancelReason = cancelReason;
    }
    @Override
    public String toString() {
        return "OverBlacklist{" +
        "id=" + id +
        ", plateNumber=" + plateNumber +
        ", plateColor=" + plateColor +
        ", transportNo=" + transportNo +
        ", peccancyTotal=" + peccancyTotal +
        ", lastPeccancyTime=" + lastPeccancyTime +
        ", status=" + status +
        "}";
    }
}
